import { defineStore } from 'pinia'
import { get, post } from '@/utils/request' 
export const useUserStore = defineStore('user', {
  actions: {   
    async userLogin(param) { 
        try {         
          return await post('/user/login')
        } catch (error) {
          console.log('请求失败:', error)
        }
    }
  }
})